package com.xuexi.api;

import com.easygo.utils.PageUtils;
import com.xuexi.easygo.pojo.TypeTemplate;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient("easygo-typetemplate-service")
public interface TypeTemplateClient {

    @RequestMapping("typeTemplate_page")
    PageUtils<TypeTemplate> getTypeTemplatePage(@RequestParam(defaultValue = "1", required = false,value = "pageIndex") Integer pageIndex,
                                                       @RequestParam(defaultValue = "5", required = false,value = "pageSize") Integer pageSize,
                                                       @RequestParam(defaultValue = "", required = false,value = "name") String name);

    @RequestMapping("typeTemplate_all")
    List<TypeTemplate> getTypeTemplates();
}
